package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPlayerCopy extends Object implements IMessageBase
    {
        public var copyCode:int;
        public var todayEnterNum:int;
        public var addNum:int;
        public var reserveInt1:int;
        public var reserveInt2:int;
        public const _type:int = 20425;
        public static var _regist:SPlayerCopy = new SPlayerCopy(true);

        public function SPlayerCopy(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SPlayerCopy();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyCode);
            param1.writeInt(this.todayEnterNum);
            param1.writeInt(this.addNum);
            param1.writeInt(this.reserveInt1);
            param1.writeInt(this.reserveInt2);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.copyCode = param1.readInt();
            this.todayEnterNum = param1.readInt();
            this.addNum = param1.readInt();
            this.reserveInt1 = param1.readInt();
            this.reserveInt2 = param1.readInt();
            
        }

    }
}
